﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp1
{
    public class MainViewModel : INotifyPropertyChanged
    {
        public ObservableCollection<TabItemViewModel> Tabs { get; set; }

        public MainViewModel()
        {
            Tabs = new ObservableCollection<TabItemViewModel>
            {
                new TabItemViewModel { Header = "Tab 1", Content = "Content of Tab 1" },
                new TabItemViewModel { Header = "Tab 2", Content = "Content of Tab 2" },
                new TabItemViewModel { Header = "Tab 3", Content = "Content of Tab 3" }
            };
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }

    public class TabItemViewModel
    {
        public string Header { get; set; }
        public string Content { get; set; }
    }
}
